//
//  MyTools.h
//  Music
//
//  Created by dllo on 16/6/6.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "BaseModel.h"
typedef void(^blockOfSuccess)(id  result);
typedef void(^blockOfFailure)(NSError  *error );

typedef NS_ENUM(NSUInteger, LHQResponseStyle) {
    LHQJSON,
    LHQDATA,
    LHQXML,
};
typedef NS_ENUM(NSUInteger, NSRequsetStyle) {
    LHQBodyJSON,
    LHQBodyString,
    
};

@interface MyTools : BaseModel
+(void)getNetWithUrl:(NSString *)url
                body:(id)body
              header:(NSDictionary *)headers
            response:(LHQResponseStyle)response
             success:(blockOfSuccess)success
             failure:(blockOfFailure)failure;

+(void)postNetWithUrl:(NSString *)url
                 body:(id)body
            bodyStyle:(NSRequsetStyle)bodyStyle
               header:(NSDictionary *)headers
             response:(LHQResponseStyle)response
              success:(blockOfSuccess)success
              failure:(blockOfFailure)failure;


@end
